bug fixes

double window bug. progress bar bug. popup bug