added dismiss button for alerts