Rewrote state approach for Session, fixed scroll bug in PageView by simplification