changed the poll case to recieve a channel rather than a bool. This channel can be used to return the current state