refactored edit and delete links everywhere