implemented navigation service for both