Added event for changing the button selected.