fix a bug with non initialized alerts collection
implement deletion of alerts
change strings to enums