add select all,clear logic