added zorder for dialog