change myprogress to can used after onload