Focus on first td in editTable.

Fix for issue #638. 
Also fixed editing old datasets which was broken terribly