close auth dialog and cancel any pending actions on 'back' button
allow PUT requests in api.php