add data model and graph view