how do I execute a script every time the channel is changed?