block clear
Fixing javascript error when switching between sub-panels