add rules to style entities in the front-end