refactor application layout to partials