Add transaction for editing item