Implement saving view state.