Move navigation to partial and conditionally render it