added current state into controller.