Conditionally displays pages on menu.