         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(MMSwiftTabBarController.updateNotificationSentLabel), name:"NotificationIdentifier", object: nil)
         
         NSNotificationCenter.defaultCenter().postNotificationName("NotificationIdentifier", object: nil)
-        
+
         if(weekNumberTab == totalSchedule.count )
         {
             leftWeekArrow.hidden = true
         }
         else if(weekNumberTab == 1)
         {
-           rightWeekArrow.hidden = true
-        }
+            rightWeekArrow.hidden = true
+        }
+
         self.searchField.delegate = self;
-          self.tabBarButtons.last?.imageView?.frame.size.height = self.tabBarView.frame.height / 2
+        self.tabBarButtons.last?.imageView?.frame.size.height = self.tabBarView.frame.height / 2
         self.searchField.autocorrectionType = .No
         self.searchField.autocompleteType = .Sentence
         let jsonstring = defaults.valueForKey("jsonData") as? String ?? String()

                (weekNumberTab!) += 1
                self.updateScheduleProperties(selectedDay)
                weekLabel.text = "Неделя " + String(weekNumber) + ", \(day.date!)"
                if(weekNumberTab == totalSchedule.count )
                {
                    rightWeekArrow.hidden = true

            
        }
    }
    func arrowPing(label:UILabel?) {
        let animation = CABasicAnimation(keyPath: "transform.scale")
        animation.toValue = NSNumber(float: 1.7)
        animation.duration = 0.3
        animation.repeatCount = 1.0
        animation.autoreverses = true
        label!.layer.addAnimation(animation, forKey: nil)
    }
//     MARK: - Update schedule
    
    func updateScheduleProperties(dayIndex:Int?) {
