implement fix for overlapping panels