prevent event spam on widgets