refactor some code on channel show