added dialog tabs logic