fixed problems with gui