defined view and view_where function of whitepapers model