Added functions for edit and delete links