MLDS-733 adding loading variable to hide alerts until promise is resolved