Fix pasting url to clipboard
Split into classes