disable buttons for pop up pages