renders preview at page load, when editing an exam.  This was pulled over from previously closed PR