changing layout, adding rules