Adjusted the cell position also during the editing or selceting. Removed some debugging code