Progress bar working in separate window