new attempt to end upload spinner, permission control fixed