Controller on index reports paginated result for html and full result on xml or json