Refactor the Edit Window into its own controller class.