added limit input value in dialog