Added close button functionality to alerts