Changed function to popular courses
Added title id to widgets