Added dialog box for the aggregate command