basic integration of algorithm into gui