updating template and styles