merged gui.js