rule setting in ui