split up MshEditor class