fix saving of tab
small improvements