check attach event for ie