converted products dialog to AJAX