Progress dialog definition issue