Change the way edit constraint is added