two type alterDialog