moved the layout to a separate template file