work with router change state