remove redirect during AJAX request