Added a commodity panel with OK and Cancel buttons to control closing of dialogs