added the coursel to the template