adding class name to item elem