Add the shutdown and restart dialog to the lockscreen the power button is held.
I am not totally sure how to do this.