end spinner and redirect after upload