remove onbeforeunload for last step