minor bugfixing with menus and permissions