Make select-all checkbox work