fixing GUI authorzation