Fixed task dialog UI issues: dialog size is constrained and progress bar is set properly