added calls to viewWillAppear and did