added paste event handler