Changed tranfer dialog to a fragment dialog to prevent leaking.