Add demo for progressbar, add demo code, improve progressbar