integrated state system with rootframework, also removes the static access of state changing