added validation before generating pdf
restored dynamic data load in wysihtml5