adding copy functionality via modal