implemented add for pages
added event for settings