putting course search into templates