Added sub controllers for edit and code view.