added handling closeEvent() to ItemForm