tying together multiple layouts