added double click
improved input dialog layout