Cleaner method of managing view state.