Add XHViewState class