combin componet pager to view.js