Updated logic for GUI