Modular design of menu and logout commands