graphs controller working