cleanups in the tabview code