updated logic for nested views to update data if desired