adding class to list elements