changed event param to be event attrs.