changed close current window bug on gub