copy template to clipboard after finish selecting.