to state views
before rest refactor