bug fixes on gui