Added select / unselect records functionality