adds new route and deletes old file