Refactor index views and transactions controller.