stop triggering events on hidden elements