Completed drag and drop and also deleted unwanted code