Some gui optimizing