fixed copy to clipboard refresh. added alerts when key is missing from database