refactored how a panel configuration object is generated and validated
removed redundant call in deleteAfter