finish most part of the navigation bar controller