Refactored ConfigComponent