moving logic for savings transaction view to a controller