updated selected state on menu