added if request.xhr to items controller