working on controller logic::added new field for saving order of box elements