Removing console errors in drag drop page