Unmerge cells functionality updates

There are updates in code for performing merge and unmerge cells operations, so that both of them works fine.