can change type on progressbar after instantiation