#51 #54 add enabling and disabling of rules as well as some keypress stuff