modified delete to ajax