added function to render upload button