added updateTuple command to main.js