added control of erasing a cell in gui