fix bug on copy button and add autofocus to some fields