factor out navbar into partial