Page functiions now working