Pages addon

Event needed for Page addon
Also, there are whitespaces mixed with tabs. Please use only tabs or whitespaces to align stuff