update method submit