fixes #142, restore state from URL
Merge pull request #144 from ua-snap/fix_restore_state

fixes #142, restore state from URL