Call the path search from UI

Call the path from UI through Logic class.