fix gui problems