adding page value to view