updating links to link correctly