implemented eventhandling for drop