Changes in createDialog service modalSuccess function