added a property, and made a method public, in navbarviewcontroller