Added an implementation of the Chi-Square dialog box