Functionality for setting clipboard