add custom pagination & delete old template page