Edit function started