update for per_page param
controller and view revamp