added a NSUserDefault helper method to the data Controller