adds router config for navigation and body, clean code