added a param option to send when closing an alert