added functionality to handle the banner when the gesture is cancelled