Added option to set duration when top view is going off screen