add selected state to nav