changed the clipboard implentation to an interface