Refactored codelist dialog to a panel