connected alg to gui