Making the path tool work in the editor