distinct edit and new form handler