Added logic to remove any row in edit mode when other row is selected.