Add a route for upload.html and remove 2 unused function