closing tab with old document