Fix bugs in console section and add copy to clipboard button