start of copy to url functionality