Factored out main navigation