refactored deselect all cells and creating new empty transactions