Add getting page link function