Add code to handle cut, copy and paste in popup windows.