added nice pagination for tables