changesd format, caught a bug for spaces, implemented copy button