main function changed to menu