overflow bug fix, new copy to clipboard function