Edited html and upload functionality