Make input dialog flexible