screen freeze when button clicked