Adding GUI objects and necessary code to let the program build