added .to_json to items controller