adding and editing pages

The core UI for adding and editing pages is done.

Also fixed annoying overflow bug for most pages.