Improve file processing modal behaviour.