optimized state editor