flavor and image admin delete javascript fix