Tidy up
Added rule editing capability
Fix the double select problem (an item in more than one list box can be selected at the same time)