finishing drag and drop code, still need to replace angular