Handle of closing of dialog box
Added the conversion to lower case for ignore words found in the inputs