added confirmation button check