file delete now works perfectly with ajax