site defaults function and trigger