update paginition directive