make page numbers work for text and sources