add autohide of alerts after 3 seconds