edit controller working