addign select and deselect all functionality