Add initial pagination template code