allow modify max_per_page

this small change just allow to change max_per_page in before_filter