hanlde menu selection