Handling events for updating/deleting a term and refreshing the sandbox