Update transaction history using $apply

Fixes #490