set up basic context to retrieve a list of pages
added some jquery ui binding handlers