restore some scripts and disable click when click on buttons