put layout code in partials