Added code to retrieve NSUserDefault value in viewDidLoad of ViewController