Now edit work. Still need to beautify tables.js