implemented policies for menus
redesigned framework