added consolidateSpans() to schedular.php