Cleaned up AdminComponentController to make panelAdd panelEdit more readable