Updated dynamic layout changing process.