makes pages automatic