build application layout header and sidebar