Refactor finance_controller