trying to get controller working