rules ui integration version 1

fixed issue #19