refactor pagecontacts