added updating navBarControllerYOffset