Clean up template and title