Align the view.state with root.splitState

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
Merge pull request #11 from acelan/master

Align the view.state with root.splitState