fixed bug in html re pagination helper for search box