view and change state user