made progress bar smooth