parent class function to menus