Moved the alert message to a better location and added automatic closing