source code for gui