add function of deleting a channel and make the animation
refactor code