Removing junk code from gui.