Added functionality to check/uncheck all the rows in the table