loading the first state
highlighting the selected state