add function of multi pages