applied css to template