Small bug fixes in the UserGui to get the rules running