Fixes all transactions appearing as sell

* cleans up template a little bit.