moved views into partials.
Merge branch 'pagination'