Added all event to buttons.