finally implemented the select channels button without errors