grid: fix last page button, add defaul_order config parameter, small fixes