adds progress bar drawing feature