fix for pagination session and urls of page 1