update pop up window's text