Add transaction status transition logic