basic UI logic with panes turning on/off