fixed gui problems