ui: added a dialog box to set the number of subdivisions