now fixed gui bugs