added switch visibility of button