refractor main nav to file