added main menu and context menu