change routes and close title tag