Capturing onFinish event to reset views.