copy to tables and text functionality