remove menu items on non-public pages