better use of i frame events

Part 1 of rework to allow event edit to useajax