Added transition effect and displayed alert message