Created state shifter that takes control over inner DOM structure when data is updated.