Top-level UI script