adding progress bars snippet