Use view._state if available otherwise fall back to view.state

Fixes #127