Add row insertion and deletion functionality to sample