clipboard and onPause handler