remove unused links from edit/show event