fix bug on pagination search not opening the popup