removed uneccessary code from tags controller for rendering json. removed index from tags and added custom controller for autocomplete with a route.