update put cursor in the end