make progress dialog unclosable
Added errormsg to gui