adds function for getting a menu item

I noticed how difficult it was to change or move a menu item. This makes it much easier.