Implementing GUI interface in Edit Distance