5. Connecting UI to code