fixing the gui issue