[PD] optimizing gui performance