added pages routes and functions