Pages addon

Event needed for Page addon
No globals please. The dispatcher service should be added to the constructor using dependency injection.