got controller working but ajax still gets error