Adding a layout and controller