add pageview common function;