extract some layout parts to be reusable on bootstrap