trying to handel paste event, still to be fixed