updated simple_list_terms function in helpers.php