better page initialization