applies new layout