implemented more things in pagetable