refactor dialog tabs