remote_form redirect only if needed