fixed bug and simplified code for hooking into menu choosing
bugfix for menu items with no division attached