page refatoring