drag and drop func added