add pages component
remove tpl from view
add assets
fix install path
pages component refactoring