intercept events wrking