Detect the Panel

Ah… found solution.