updated the alert messages to have a close button