1. add progress bar
2. fix crash bug