Auto disable button when not visible