Updated click templates to use new socket API-click communication