Moved basic code from application layout to partials