Turned frmEditItem into a reusable dialog