set state of selected source