Update code elements in lists