Fixes url references and routes file