Function createLayoutsController