Accessed hash of courses in controller