You are moving into "DesignerPanels.js" some actions that must be done in Deimos or Phobos to ensure object encapsulation and low coupling between software components needed for good software quality.