Included the pagelayout in the query call of the repository