fix bug with page views