Table is no longer editable after button is clicked