refs #1: convert GUI mockup to raw code