configuration to support unit test of our controller
viewState refactor
removed viewchange event broadcast
removed unnecessary currentState var