change the index action to enable to display 10 courses in the index page