add detail info panel and selected state