click on template made it selected