Added event listener for file upload