updated events to support chrome