added indeterminate state to selectAll checkbox