Cleaned up some code and added a small feature for transaction views.