Add handlers for pages