Learn action for buttons