fixing things for gui