adds router and navigation