Refresh the list whenever the contents change