optimizing contract window edit load