update the snapshot and the title of tabs in realtime