Move delegate callbacks to EditController, where they are used
Move page formatting into its own class