Register Ajax Form Return

add_action( 'wp_ajax_plugin_slug_insert_dialog', 'plugin_slug_insert_gistpen_dialog' );

function plugin_slug_insert_gistpen_dialog() {

            die(include 'path/to/dialog/form.php');

}