fixing gui bugs