 
 class UploadManager: NSObject {
     
-    var count = 0
+    var order = 0
     var arrImages: [UIImage]!
     var serverImageUrls: [String] = []
     var  awsClient: AWSClient

    }
    
    func startUpload() {
        if (arrImages.count > 0) {
            delegate.startUpload(count)
            awsClient.uploadImage(authService.getLoginUser()?.email, image: arrImages[0], success: nil, error: nil, progress: nil)
        } else {
            print("Upload without image. Maybe for testing only :-O")

        let imageUrl = notification.userInfo!["server_url"] as! String
        serverImageUrls.append(imageUrl)
        
       order = order + 1
        if order < arrImages.count {
            print("start to upload image \(order)")
            delegate.startUpload(order)
            awsClient.uploadImage(authService.getLoginUser()?.email, image: arrImages[order], success: nil, error: nil, progress: nil)
        } else {
            print("Upload all images finish :D")
            
            // continue to download topic
            delegate.startUpload(-1)
            // assign all uploaded url to topic again
            topic.parking.imageUrl = serverImageUrls
            topic.toPFObject().saveInBackgroundWithBlock {
                (success: Bool, error: NSError?) -> Void in
