changed gui condition