Updates the pagination markup.