update the base template