tm - added copy to clipboard function