Don't connect signals until the very end
Make the "copy to clipboard" button do something useful.