made mechanism editor size variable with expand/collapse button controls