does not render layout in xhr request