fixed bugs in the navigation service, scope should now be passed around