added JS confirmation