Append pagination event handler after AJAX call