conditional rendering on js updates is complete