added onEnd event in workflow controller