Remove tabs and delete associated xpathviewer