         // Dispose of any resources that can be recreated.
     }
     
+    /**
+     Will call logout/unsubscribe/ API and removes all the user's data.
+     
+     - parameter none
+     - return none
+     */
     private func callAddDeviceMethod() {
         NewDeviceRequestManager.sharedInstance.putNewDevice({ (success, message, code, addDeviceCode) in
             if success {

        UIApplication.sharedApplication().statusBarHidden = true
        settingsArray = [ NSLocalizedString("change-pin", comment: ""), NSLocalizedString("privacy", comment: ""), NSLocalizedString("add-device", comment: ""), NSLocalizedString("delete-user", comment: "")]
        
  
        tableView.tableFooterView = UIView(frame: CGRectZero)
        
        dispatch_async(dispatch_get_main_queue(), {
            self.gradientView.colors = [UIColor.yiMango95Color(), UIColor.yiMangoColor()]
                self.tableView.backgroundColor = UIColor.yiTableBGGreyColor()
        })

    }
    
    override func didReceiveMemoryWarning() {

        return cell
    }
    
    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        if indexPath.row == 2 {
            callAddDeviceMethod()
        }
        else if indexPath.row == 3 {
            self.displayAlertOption(NSLocalizedString("delete-user", comment: ""), alertDescription: NSLocalizedString("deleteusermessage", comment: ""), onCompletion: { (buttonPressed) in
                switch buttonPressed {
                case alertButtonType.OK:
                    self.callUnSubscribeMethod()
                    
                case alertButtonType.cancel:
                    break
