added code to present a navigation controller with a root view controller