added abstract parent state with main and view as children.
added data factory
fixed conflict
Merge pull request #7 from jpk1215/view-child-state

View child state