changed implementation of navbar to make it more consistent with iOS7 style