change the layout of course list and course detail; also change the query type to by id