Update mainui.cpp

Copy to Clipboard code update