Right now index_course is just an endpoint that isn't rendered. Right now the way I'm doing this is just by sending an ajax call to this with the relevant args, but I'm not sure that's the best way to do it. Is there a better way?