Handle edit submit