Added clear functionality with confirm yes/no