adding checking the menu