adds foundation and updates layout