Connected the buttons to handlers