changed view_portfolio function to show total on same line