Ajax delete fixes