Prevent the page from refreshing when pressing on Reboot/Shutdown/Logout