Update the layout and css of templates.