use also the captionChanged signal to update the window titles