adds router and passing of params via routes