adding the close alert button helper