fixing layout rendering