complete pagination directive