modified the alerts to have close buttons