Cleans up tabs