loading courses and sessions into the template