moved nav to templates