added cancel button check while writing files
changed message with file progress