change pages style. change template rules for lang function.