added deactivation to buttons