updates styling and template