better example of handling routing