made courseware preview work