pui: store a last updated buffer and return