change handling of max_items in view list

Closes #259