integrate view to states.