move the install course token block into it's own function

refs #97