edit add method