Seperated main UI from history and editor

Moved editor UI fxml controller to the EditorController class.