Change view state using an event aggregator

Fixes #1