add courses to home page, and fix corresponding controller