adds catch all route for 404s
adds code to use query instead of param for req so 404 page will catch