updated logout confirm callback function