GUI logic update