factor out navbar/footer