updates to make example more specific and move route registration to routeconfig