adding rule GUI