menu with exit code