changes to the buttons and events.