fix gui resizing