add divide page logic