changes to view and graph