#660 initial tying in of template editor with modal