add content events and support deprecated page events