changing selected state classes