Removed older version of control panel code, which was commented out.