fixing GUI bugs