Added example of switching layouts