rendering json instead of index view