cleaning up gui