refined the menu and global interface