loading icon and fixing s3 error