editable table cells
refactored, fixed most of #2