corrected position for 404 functionality in routes should be last