deals with user click buttons repeatly