adds toParams and getCallback to NavigationBarButton.