added page recording for users and visitors