Cleaning up the templates and styling.