Pages addon

Event needed for Page addon
These are using spaces for indentation. They should all be tabs please