reformat old upload button into new method