Code to respond to menu selection