initial pages model and defined insert function
defined view function for pages model
defined view_where function for pages model