added in the uploading functionality to the page