separate graph view and widget