rework dialog showing