adds edit view, algorithm is now functional