improved the code and started working on the courses tab