close alerts after 2 seconds automatically