added functional timer to progress dialog