added check for all in panels_preprocess