make checkbox selector buttons more generic