add controller StateController

add controller StateController
view data from StateController
view array from controller