Refactored routes code; added event for transaction add form