removed dependency on div for pagination