added viewDidLoad method