upload and preview video working