Altered Alert in Progress code to smartly display alerts and then hide them when expired, while still keeping the data