abstracted methods out of transaction_controller to models