edit and set headers for pagination