added directive for preview and question format changes according to directive in writequest.html