Added edit/delete functionality with permissions