refactor channel windows