add ClientState to views