Refactored code a bit and display a message when file is uploaded to cloud