added menu item functionality