Fix TabList clearing, remove imports