Implemented methods to update NSUserDefaults when moving or deleting cells.