add confirm func; implemented trash clear operation