some gui bug fixes