move dirty file check method inside isHTml5 block and modify UI progress
bar