started working on the ui for setting rules