fix click listener for next page