added html thank you page as well as redirect if the window does not close when power button is pressed