cleaning up alert messages