fix pageTypeWithLayout ajax call