remove alert from collection upon clicking on close button