fix links and routes