added cell merge functionality