moving navigation to main template