Added in function to create edit and delete links.