Fixed remote request handling, added logic to hide or show the alert container