Added action before delete rows
Fixed return