fixing authorization in GUI