allowed drawing multiple windows, added progress bar