added get the paged value from the link to the page head and paged as a variable