Fixed functions to add edit/delete links.