adding classes to arrange new order