resolved ruleslist to arraylist since hashmap is unnecessary and uses ArrayAdapter