fix customer filter and AREX#foreign_keys
add search filter
arrange history page
decorate paginate