refactor navigations to not display if no menu items are present