rename edit.js to action.js