Moved fooditemdialog to common class