Fixed loading div functionality in upload page