Removing a reference to the obsolete StateManager, using Routes instead

Changing the reference to use router code that I know works, but is probably wrong. The code I've put in seems overly verbose.

If someone wants to show a better way to accomplish passing a message from views to routers, I'll update the PR with the *correct* way to do this?