use isActive method to check if current panel state is between the onAct...

...ivate/onDeactivate states or not