Removed alertdialog because it could not copy to clipboard