update template and courses model`