resolving double render issue in course_notification method