finish add & edit & delete on mtype and stype