adds page logging