refactoring and mixine errors

fixed memory leak in net_balance_getter
refactoring and changes in app. windows