Added own implementation of AJAX dialog.