added auto-update after data changes.