fix a few issues with graphical gui