Adding edit and delete methods.