Added event to AJAX dialog handler.