git ready the ajax call back function for
preview dialog.