Moved transfer logic into model

note* Crazy error when trying to complete a transaction.