Config panel needs no parent
Reordered some code