modified the GUI file so that all GUI classes were encapsulated in a single class