Corrected malfunction on delete and edit button