Updating layer management to reduce flickering