adding the progressbar and testing model