adds a view page link, fixes the trash span on the edit link