Add state model.
Change state on navigation change.
Initialize state.
Use state to control flow.