updated index action to account for both courses and videos