Make "Add to Table" button work