base state structure and editor