added enter key for dialog