built delete route fixed some bugs