added 'Copy code' functionality