make copy buttons work