updating text and refs