updating layout and process sag