updating course template with active states and course icons