When user directly click on the end page handled that case