hooks up transfer code to view.