adding in page events