changed dialog to use setupItem