now paginates properly
injects php and header