clear files section after clicking process, fix success and error messages