addded new invoke if method exists utility
delegate/undelegate events on show/hide