generate redesigned navbar
refactor generation of main pages