add updateisnew that can only be access using ajax req.