Added debug code to all panels