adding destroy action in class method