fix clear all selections bugs. add confirm message