Refactor page view to cater for ManyToMany view