fix layout with xhr