Added option to load AJAX content

Added option to load ajax content to dialog
I am new to git so sorry for all the diffs with the new line changes