Add drag and drop function.