rules and template for homepage adjustment