1. Separate the show messages into new file
2. Separate the progressbar into  new file
3. apply necessary calling changes