edit rules layout