adding class selected n unSelected