dialog factory and dynamic value change