add pagination, coding in application_helper, layout cleanup