update both template and stylesheet