Callback for selecting a major