fixes #5 by not triggering on hidden elements