added dialogs on js