new UI, draft 6, Connecting UI to main.js