Adding the respond_to part for normal AJAX workflow