improve detection of active plugin

previous implementation was only relying on visible, why might not be enough anymore if we are in 'expanded mode'