Add option to control cancel of progress bar and use a compulsory progress bar during opening config