improved InputBoxDialog