cleaned up the code of the gui a little bit

made everything a little bit nicer.