fix bug for pagination size; add alignment control