fixed a few GUI bugs