Added event to buttons