refactor to support a popup method for loading quiz. move markup parsing to popup view.