changes to video uplaod function