Fix show/hide feature for debugPanel plugin